home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_gen / t4diblib.zip / VIEWLIB1.F3_ / VIEWLIB1.F3
Text File  |  1995-11-14  |  2KB  |  69 lines

  1. VERSION 2.00
  2. Begin Form Form1
  3.    Caption         =   "VIEWLIB1"
  4.    ClientHeight    =   2004
  5.    ClientLeft      =   2388
  6.    ClientTop       =   2244
  7.    ClientWidth     =   4188
  8.    Height          =   2424
  9.    Left            =   2340
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   2004
  12.    ScaleWidth      =   4188
  13.    Top             =   1872
  14.    Width           =   4284
  15.    Begin CommandButton Command1
  16.       Caption         =   "Quit"
  17.       Height          =   372
  18.       Left            =   2280
  19.       TabIndex        =   1
  20.       Top             =   1440
  21.       Width           =   972
  22.    End
  23.    Begin T4DILIB dilib1
  24.       Caption         =   "dilib1"
  25.       ControlMode     =   0  'Lib -> PIC
  26.       Height          =   372
  27.       Left            =   3360
  28.       Top             =   1440
  29.       Visible         =   0   'False
  30.       Width           =   732
  31.    End
  32.    Begin ListBox List1
  33.       Height          =   1176
  34.       Left            =   2280
  35.       TabIndex        =   0
  36.       Top             =   120
  37.       Width           =   1812
  38.    End
  39. End
  40. Option Explicit
  41.  
  42. Sub Command1_Click ()
  43.  End
  44. End Sub
  45.  
  46. Sub Form_Load ()
  47. Dim myctr%
  48. 'Center the form.
  49.  Top = (screen.Height - Height) / 2!
  50.  Left = (screen.Width - Width) / 2!
  51. 'Set our DIB library name and open it.
  52.  dilib1.LibraryName = "bluespin.ilb"
  53.  dilib1.Action = IM_ACTION_OPENLIBRARY
  54. 'Fill the list box with member numbers.
  55.  For myctr = 1 To dilib1.MemberCount
  56.   dilib1.MemberNumber = myctr
  57.   list1.AddItem "[" + Trim$(Str$(myctr)) + "]"
  58.  Next myctr
  59. End Sub
  60.  
  61. Sub List1_Click ()
  62. 'Add 1 to ListIndex for Base-1.
  63.  dilib1.MemberNumber = list1.ListIndex + 1
  64. 'Load and display the image.
  65.  dilib1.Action = IM_ACTION_GETMEMBER
  66.  Picture = dilib1.Picture
  67. End Sub
  68.  
  69.